package com.rerun.entity.quartz;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

@TableName("qrtz_scheduler_state")
public class QrtzSchedulerState extends Model<QrtzSchedulerState> {

  private static final long serialVersionUID = -1357536712003678304L;
  private String schedName;
  @TableId(type = IdType.AUTO)
  private String instanceName;
  private long lastCheckinTime;
  private long checkinInterval;

  public String getSchedName() {
    return schedName;
  }

  public void setSchedName(String schedName) {
    this.schedName = schedName;
  }

  public String getInstanceName() {
    return instanceName;
  }

  public void setInstanceName(String instanceName) {
    this.instanceName = instanceName;
  }

  public long getLastCheckinTime() {
    return lastCheckinTime;
  }

  public void setLastCheckinTime(long lastCheckinTime) {
    this.lastCheckinTime = lastCheckinTime;
  }

  public long getCheckinInterval() {
    return checkinInterval;
  }

  public void setCheckinInterval(long checkinInterval) {
    this.checkinInterval = checkinInterval;
  }


  @Override
  protected Serializable pkVal() {
    return instanceName;
  }
}
